home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15334 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: falcon.arl.psu.edu!rdg
  2. From: rdg@falcon.arl.psu.edu ()
  3. Newsgroups: comp.lang.c++
  4. Subject: Help w/ C++ DLLs and VBasic
  5. Date: 4 Apr 1996 23:11:29 GMT
  6. Organization: Applied Research Lab, Penn State University
  7. Distribution: world
  8. Message-ID: <4k1kv1$181o@hearst.cac.psu.edu>
  9. Reply-To: rdg@falcon.arl.psu.edu ()
  10. NNTP-Posting-Host: flcon.arl.psu.edu
  11. X-Newsreader: mxrn 6.18-27
  12.  
  13.  
  14.  
  15. I am trying to create DLLs with MS C++ 4.0 to be used with MS VB 4.0 
  16. The DLLs contain non-windows functions and data.  I having been using
  17. _declspec(dllexport) to specifiy which functions and data items are to
  18. be exported.  Every attempt to date has been flagged by VB with error
  19. 453 - function not found.  This seems to indicate that either the
  20. function is not being entered into the DLL interface correctly or VB is
  21. accessing the DLL interface in a manor that is not compatiable with the
  22. MS extension of dllexport.  
  23.  
  24. I have also tried to use a .def EXPORTS approach using the decorated
  25. names in lieu of the _declspec(dllexport) approach with no success (same
  26. error from VB). 
  27.  
  28. Does anyone have any advice on what I may be omitting in the DLL that is
  29. causing the function not to appear in the DLL interface (at least as far
  30. as VB is concerned).  I have also looked at the DLL with the DOS
  31. "dumpbin/exports" utility and it shows that the functions have been
  32. listed as exported from the DLL.
  33.